package desktop.core.playfield.util;

import desktop.core.playfield.PlayFieldViewAbstract;
import desktop.core.square.Square;
import pulpcore.animation.event.TimelineEvent;

public class PlayFieldViewSquareDisappearEvent extends TimelineEvent {

	private PlayFieldViewAbstract playFieldView;
	private Square square;

	public PlayFieldViewSquareDisappearEvent(int delay,
			PlayFieldViewAbstract playFieldView, Square square) {
		super(delay);
		this.playFieldView = playFieldView;
		this.square = square;
	}

	@Override
	public void run() {
		playFieldView.squareDisappearEvent(square);
	}

}
